package com.ds.esb.expression;

import com.ds.common.expression.function.AbstractFunction;
import com.ds.esb.util.EsbFactory;
import com.ds.jds.core.esb.EsbUtil;

public  class EVALFunction extends AbstractFunction {

	public String expressionStr;
	public EVALFunction(String expressionStr){
		super();
		this.expressionStr=expressionStr;

	}
	public Object perform() {
//		ExpressionParser parser = BPMExpressionParserManager.getExpressionParser(null);
//        parser.parseExpression(expressionStr);
//		Object obj=parser.getValueAsObject();

		Object obj = EsbUtil.parExpression(expressionStr);
		return obj;

	}
}